#include"TimedEvent.h"
#include <iostream>

 

TimedEvent::TimedEvent(void)
{
	_eventType = TIME;
}

TimedEvent::~TimedEvent(void)
{
}


void TimedEvent::setTimedEventStartTime(DateTime start){
	_startTime = start;
}

DateTime TimedEvent::getTimedEventStartTime(){
	return _startTime;
}

void TimedEvent::setTimedEventEndTime (DateTime end){
	_endTime = end;
}

DateTime TimedEvent::getTimedEventEndTime(){
	return _endTime;
}
/*
void TimedEvent::setDuration(){
_duration._month = _endTime-_startTime;
}
*/
DateTime TimedEvent::getTimedEventDuration(){
	return _duration;
}

void TimedEvent:: setTimedEventDuration(DateTime duration){
	_duration= duration;
}



void TimedEvent::printEvent(){
	std::cout<<getName()<<","<<getImportanceLevel()<<","<<getLocation()<<","<<getDisplayID()<<",";

	getTimedEventStartTime().printDateTime();
	std::cout<<",";
	(getTimedEventEndTime()).printDateTime();
	std::cout<<",";

	(getTimedEventDuration()).printDateTime();
	std::cout<<std::endl;
	return;
}
